<div class="admin_left actions">

    <h3 style="font-size:20px;">Manage more</h3>

        <ul>
            <li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Consigners'), array('controller' => 'consigners', 'action' => 'index'),array('class' => 'consistentButton2')); ?> </li>
            <li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Suppliers'), array('controller' => 'suppliers', 'action' => 'index'),array('class' => 'consistentButton2')); ?> </li>
        	<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Purchases'), array('controller' => 'purchases', 'action' => 'index'),array('class' => 'consistentButton2')); ?> </li>
            <li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('New Purchase'), array('controller' => 'purchases', 'action' => 'add'),array('class' => 'consistentButton2')); ?> </li>

        </ul>
    </div>

<div id="pinkHeader" class="admin_right items index">

		<div id=breadcrumbAdmin>
	    	<?php $this->Html->addCrumb('Suppliers', '/Suppliers/index', array('style'=> ('text-decoration:underline; color:#EB1E70;'))); ?>
	        <?php echo $this->Html->getCrumbs(' > ', array( 'text' => 'Contacts', 'url' => array('controller' => 'suppliers', 'action' => 'index'), 'escape' => false)); ?>
	    </div>


<div class="suppliers index">
	<h2><?php echo __('Suppliers'); ?></h2>
	<div id="search" style="text-align: left;">
                                    <?php
                                        echo $this->Form->create('Consigner',array('action' => 'search'));
                                        echo $this->Form->input('keyword', array('label' => 'Search for'));
                                        echo $this->Form->end('Search');
                                    ?>
                                </div>
       <p  class="actions" style="list-style-type:none; margin-bottom:2%;"><?php echo $this->Html->link(__('Add New Supplier'), array('action' => 'add')); ?></p>


        <table style="width:120%;" cellpadding="0" cellspacing="0" class="table table-bordered  table-hover">
	<tr>
			<th><?php echo $this->Paginator->sort('company_name'); ?></th>
			<th  style="width:8%;"><?php echo $this->Paginator->sort('address'); ?></th>
			<th><?php echo $this->Paginator->sort('email'); ?></th>
			<th><?php echo $this->Paginator->sort('phone'); ?></th>
			<th  style="width:50%;"><?php echo $this->Paginator->sort('status_id'); ?></th>
			<th style="width:50%;" class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($suppliers as $supplier): ?>
	<tr>
        <td><?php echo $this->html->link($supplier['Supplier']['company_name'], array('controller' => 'suppliers', 'action' => 'view', $supplier['Supplier']['id'])); ?>&nbsp;</td>
		<td  style="width:8%;"><?php echo h($supplier['Supplier']['address']); ?>&nbsp;</td>
		<td><?php echo h($supplier['Supplier']['email']); ?>&nbsp;</td>
		<td><?php echo h($supplier['Supplier']['phone']); ?>&nbsp;</td>
		<td>
			<?php echo h($supplier['Status']['name']); ?>
		</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $supplier['Supplier']['id'])); ?>
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $supplier['Supplier']['id']), null, __('Are you sure you want to delete # %s?', $supplier['Supplier']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>
	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>

</div>

